package com.hy.erp.inventory.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery ;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Index;
/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IEducationDao;
import com.hy.erp.inventory.pojo.interfaces.IEducation;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：下午02:22:39</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：教育经历</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */

@Entity
@Table(name="t_education")
/*
@Name("education")
@Scope(ScopeType.SESSION)
@ DaoA ( IEducationDao.class )
@ NamedQuery ( name = "findEducationByPersonId" , query = "select p.education from Person p where p.identifier=?")
*/
//public class Education extends AbstractPersistentEntity implements IEducation
public class Education extends MyBaseModel //implements IPositonType
{

	
	private static final long	serialVersionUID	=
														2753950495805102640L ;



	public Education(){}

	public Education (
								
								String educationName ,
								Date startDate ,
								Date stopDate ,
								String institution ,
								String speciality ,
								String remark )
	{
		super ( ) ;
	
	}


	@Column(name="educationName",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="educationNameIndex")
	public String getEducationName ( )
	{
		return this.get(IEducation.EDUCATIONNAME) ;
	}

	@Column(name="startDate",unique=false,nullable=false,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStartDate ( )
	{
		return this.get(IEducation.STARTDATE) ;
	}

	@Column(name="stopDate",unique=false,nullable=false,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStopDate ( )
	{
		return this.get(IEducation.STOPDATE) ;
	}

	@Column(name="institution",unique=false,nullable=false,insertable=true,updatable=true)
	public String getInstitution ( )
	{
		return this.get(IEducation.INSTITUTION) ;
	}

	@Column(name="speciality",unique=false,nullable=false,insertable=true,updatable=true)
	public String getSpeciality ( )
	{
		return this.get(IEducation.SPECIALITY) ;
	}

	@Column(name="remark",unique=false,nullable=true,insertable=true,updatable=true)
	public String getRemark ( )
	{
		return this.get(IEducation.REMARK) ;
	}

	//############################################################
	
	

	public void setEducationName (
									String educationName )
	{
		super.set (IEducation.EDUCATIONNAME , educationName );
	}

	public void setStartDate (
								Date startDate )
	{
		super.set (IEducation.STARTDATE , startDate );
	}

	public void setStopDate (
								Date stopDate )
	{super.set (IEducation.STOPDATE , stopDate );
	}

	public void setInstitution (
									String institution )
	{
		super.set (IEducation.INSTITUTION , institution );
	}

	public void setSpeciality (
								String speciality )
	{
		super.set (IEducation.SPECIALITY , speciality );
	}

	public void setRemark (
							String remark )
	{
		super.set (IEducation.REMARK , remark );
	}
	
	
	
}
